package com.mybatis.domain;

import java.util.Date;

public class Order {

    private int id;  //id
    private Date ordertime;   //时间
    private Double total;  //金额
    private User user;  //订单属于哪一个用户

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", orderTime=" + ordertime +
                ", total=" + total +
                ", user=" + user +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(Date ordertime) {
        this.ordertime = ordertime;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
